/**
 * @type {Array<import("vue-router").RouteConfig>}
 */
const routes = [
  {
    path: "/admin",
    alias: "/admin/index",
    component() {
      return import("@/views/admin/index.vue");
    },
    redirect: "/admin/sysdictionary",
    meta: {
      title: "管理员页面",
      nologin: false,
      footer: true,
      header: true
    },
    children: [
      {
        path: "sysdictionary",
        component() {
          return import("@/views/admin/sysdictionary.vue");
        },

        meta: {
          title: "基础数据设置",
          footer: true,
          header: true,
          nologin: false
        }
      },
      {
        path: "sysdictionary$modify/:id",
        component() {
          return import("@/views/admin/sysdictionary_edit.vue");
        },
        meta: {
          title: "修改基础数据",
          footer: true,
          header: true,
          nologin: false
        }
      },
      {
        path: "sysdictionary$create",
        component() {
          return import("@/views/admin/sysdictionary_edit.vue");
        },
        meta: {
          title: "新增基础数据",
          footer: true,
          header: true,
          nologin: false
        }
      },
      {
        path: "sysdictype",
        component() {
          return import("@/views/admin/sysdictype.vue");
        },
        meta: {
          title: "字典类型设置",
          footer: true,
          header: true,
          nologin: false
        }
      },
      {
        path: "sysdictype$create",
        component() {
          return import("@/views/admin/sysdictype_edit.vue");
        },
        meta: {
          title: "新增字典类型",
          footer: true,
          header: true,
          nologin: false
        }
      },
      {
        path: "sysdictype$modify/:id",
        component() {
          return import("@/views/admin/sysdictype_edit.vue");
        },
        meta: {
          title: "修改字典类型",
          footer: true,
          header: true,
          nologin: false
        }
      }
    ]
  }
];

export default routes;
